projects
/
project
/
iwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94b1366
)
build: compile with -ffunction-sections, -fdata-sections and LTO
author
Jo-Philipp Wich
<
[email protected]
>
Thu, 26 Jul 2018 07:13:21 +0000
(09:13 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Thu, 26 Jul 2018 07:13:21 +0000
(09:13 +0200)
Signed-off-by: Jo-Philipp Wich <
[email protected]
>
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 715c03e34671401c6e82f72d78f703b725db9e0e..d4f0f00bc6fcac1a8ae58fb4ab3adc91108ca3a9 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,6
+1,6
@@
IWINFO_BACKENDS = $(BACKENDS)
-IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing -Iinclude
-IWINFO_LDFLAGS = -luci -lubox -lubus
+IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing -
ffunction-sections -fdata-sections -flto -
Iinclude
+IWINFO_LDFLAGS = -
Wl,-gc-sections -flto -
luci -lubox -lubus
IWINFO_LIB = libiwinfo.so
IWINFO_LIB_LDFLAGS = $(LDFLAGS) -shared